package com.cuitrip.push.model;

import android.text.TextUtils;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

/**
 * Created by ak on 15/11/5.
 */
public class TypeKeyMap {

    public static final int kSystenMsg = 1;    //SYSTEM_MSG(1; "系统消息");
    public static final int kBuyOrderMsg = 2;    //BUY_ORDER_MSG(2; "下单通知消息");
    public static final int kConfirmOrderMsg = 3;    //CONFIRM_ORDER_MSG(3; "确认订单消息");
    public static final int kDiaLogMsg = 4;    //DIALOG_MSG(4; "对话通知消息");
    public static final int kCommentMsg = 5;    //COMMENT_MSG(5; "评论通知消息");
    public static final int kPaidOrderMsg = 6;    //PAID_ORDER_MSG(6; "付款通知消息");
    public static final int kCancelOrderMsg = 7;    //CANCEL_ORDER_MSG(7; "取消订单消息");
    public static final int kBeginOrderMsg = 8;    //BEGIN_ORDER_MSG(8; "开始旅程消息");
    public static final int kEndOrderMsg = 9;    //END_ORDER_MSG(9; "结束旅程消息");
    public static final int kInvalidOrderMsg = 10;   //INVALID_ORDER_MSG(10; "订单失效消息");
    public static final int kReadyOrderMsg = 11;   //READY_ORDER_MSG(11; "旅程即将开始消息");
    public static final int kRefuseOrderMsg = 12;   //REFUSE_ORDER_MSG(12; "拒绝接单消息");
    public static final int kDrawMoneyMsg = 13; //DRAW_MONEY_MSG(13; "申请取现消息");
    public static final int kModifyOrderMsg = 15; //修改预约消息


    private static List<Integer> keyReminderList = new ArrayList<>();

    static {
        keyReminderList.add(kBuyOrderMsg);
        keyReminderList.add(kConfirmOrderMsg);
        keyReminderList.add(kCancelOrderMsg);
        keyReminderList.add(kRefuseOrderMsg);
        keyReminderList.add(kPaidOrderMsg);
        keyReminderList.add(kBeginOrderMsg);
        keyReminderList.add(kEndOrderMsg);
        keyReminderList.add(kCommentMsg);
        keyReminderList.add(kModifyOrderMsg);
    }

    public static boolean isPushModelNeedRemind(int messageType) {
       /* if (!TextUtils.isEmpty(messageType)) {
            try {*/
//                int type = Integer.parseInt(messageType);
                if (keyReminderList.contains(messageType)) {
                    return true;
                }
            /*} catch (Exception e) {

            }

        }*/
        return false;
    }

}
